package cn.bdqn.controller;

import cn.bdqn.dao.BanklikeDaok;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: 苏闻君
 * @Date: Created in 2020/7/30  10:06
 * 试题收藏类controller
 */
@Controller
public class BanklikeControllerk {
    @Autowired
    BanklikeDaok bk;

    @ResponseBody
    @RequestMapping("/shoucang")
    public Integer shoucang(HttpServletRequest request){
        Integer bankid=Integer.parseInt(request.getParameter("bankid"));
        Integer res=bk.insertbk(bankid);
        return  res;
    }
}
